package com.cheche.mvctest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;


@Controller
@RequestMapping(value="/test")
public class TestController {

 	@RequestMapping(value="/welcome")
    public ModelAndView  welcomeHandler() {
 		ModelAndView mav = new ModelAndView("welcome");
 		mav.addObject("what", "Hello World!");
 		System.out.println(mav.toString());
 		return mav;
    }
}
